
diary 'test.txt'
diary on;

for i = 1:10
    for j  = 1:10
        for p  = 1:10
        for o = 1:10
            if(o ==8)
            disp(i);
            disp(j);
            disp(p);
            disp(o);
            disp(" ---------");
            break;
            end
          
           
        end
        end
    end
end
diary off;
